﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WJP.DataPortal
{
    /// <summary>
    /// 由服务器端数据门户组件实现的接口
    /// </summary>
    public interface IDataPortalServer
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="objectType"></param>
        /// <param name="criteria"></param>
        /// <param name="context"></param>
        /// <returns></returns>
        DataPortalResult Fetch(Type objectType, object criteria, DataPortalContext context);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="obj"></param>
        /// <param name="context"></param>
        /// <returns></returns>
        DataPortalResult Update(object obj, DataPortalContext context);
    }
}
